package com.tedu._02notice.mapper;

import com.tedu._02notice.pojo.entity.Notice;
import com.tedu._02notice.pojo.vo.NoticeDetailInfoVO;
import com.tedu._02notice.pojo.vo.NoticeListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NoticeMapper {
    int inster(Notice notice);

    List<NoticeListVO> list(@Param("title")String title, @Param("type") Integer type);

    NoticeDetailInfoVO detail(Long id);

    int delete(Long id);

    int update(Notice notice);
}
